import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'amfe-flexible'
import './styles/index.less' //全局样式

import 'vant/lib/index.css'

// import Vant from 'vant';
// Vue.use(Vant);

import {
    Field,
    Form,
    Icon,
    Button,
    Search,
    NavBar,
    Cell,
    CellGroup,
    Tabbar,
    TabbarItem,
    Popup,
    Tab,
    Tabs,
    List,
    PullRefresh
} from 'vant';
import { Image as VanImage } from 'vant';
import { Grid, GridItem } from 'vant';
import { Dialog } from 'vant';

// 全局注册
Vue.use(Dialog);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(VanImage);
Vue.use(Field);
Vue.use(PullRefresh);
Vue.use(List);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Popup);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(NavBar);
Vue.use(Form);
Vue.use(Icon);
Vue.use(Button);
Vue.use(Search);

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')